
<html>
  <head>
    <title>Hide the Ad</title>
    <script language="javascript" type="text/javascript" src="background.js"></script>
<!--	<script  language="javascript" type="text/javascript" >
	    function DoIt()
		{
		    alert("calling");
		    alert("calling");
			alert(chrome.tabs);

//			chrome.tabs.getSelected(null,function(mytab) {
//					alert(mytab.title);
//					var myjs = chrome.tabs.InjectDetails;
//					if (mytab.title.indexOf("Hotmail")!=-1){
//					//chrome.tabs.executeScript(mytab.id,{code: "var obj = document.getElementById('ManagedContentWrapper'); obj.style.top='2.677376171352075em';if (obj.style.width)<>'') document.getElementById('ManagedContentWrapper').style.width=(document.getElementById('ManagedContentWrapper').offsetWidth+155).toString()+'px'";" },null);
//						//chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').offsetWidth)" },null);
//						chrome.tabs.executeScript(mytab.id,{code: "var obj = document.getElementById('ManagedContentWrapper'); obj.style.top='2.677376171352075em'; if (obj.style.width=='') obj.style.width = (obj.offsetWidth+160).toString()+'px'" },null);
//					}else if (mytab.title.indexOf("Yahoo! Mail")!=-1){
//						var myCode = " if (document.getElementById('theAd')) document.getElementById('theAd').style.display = 'none'; ";
//						myCode += " var obj = document.getElementById('msg-list');  "
//						myCode += " var obj2 = document.getElementById('msg-preview');  "
//						myCode += " var obj3 = document.getElementById('rail-resize-hori');  "
//						//myCode += " alert(obj.style.width); alert(obj.offsetWidth); "
//						myCode += " if (obj.style.width=='auto') obj.style.width = (obj.offsetWidth+160).toString()+'px'; "
//						myCode += " if (obj2.style.width=='') obj2.style.width = (obj2.offsetWidth+160).toString()+'px'; "
//						myCode += " if (obj3.style.width=='') obj3.style.width = (obj3.offsetWidth+160).toString()+'px'; "
//						chrome.tabs.executeScript(mytab.id,{code: myCode },null);
//					}else{
//						alert(mytab.title);
//					}
//					//chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').offsetWidth)" },null);
//					//chrome.tabs.executeScript(mytab.id,{code:"alert(document.getElementById('ManagedContentWrapper').style.width=='')" },null);
//					//chrome.tabs.executeScript(mytab.id,{code:"document.getElementById('ManagedContentWrapper').style.width=(document.getElementById('ManagedContentWrapper').offsetWidth+155).toString()+'px'" },null);
//				}
//			);		
		}
	</script>-->
  </head>
  <body onload="javascript:doIt()">
	Done
  </body>
</html>
